package com.cyc.basic.pojo.vo;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.cyc.common.enums.StatusEnum;
import com.cyc.common.enums.UserTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author chenyunchang
 * @since 2021-01-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "SysUser对象", description = "用户表")
public class SysUserAddReq extends Model<SysUserAddReq> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "姓名", position = 1)
    @NotBlank(message = "姓名不能为空")
    private String name;

    @ApiModelProperty(value = "年龄", position = 2)
    @NotNull(message = "年龄不能为空")
    private Integer age;

    @ApiModelProperty(value = "用户类型")
    @NotNull(message = "用户类型不可为空")
    private UserTypeEnum userType;

    @ApiModelProperty(value = "状态", notes = "com.cyc.common.enums.StatusEnum")
    private StatusEnum status;


}
